#include "layer.h"

Layer::Layer(QString name, bool visible, qint32 width, qint32 height)
{
    m_name = name;
    m_visible = visible;
    m_width = width;
    m_height = height;

    initialise();
}

void Layer::initialise()
{
    m_data = new QVector<QVector<int> >;

    m_data->resize(m_width);
    for (qint32 i = 0; i < m_width; i++)
    {
        (*m_data)[i].resize(m_height);
        for (qint32 j = 0; j < m_height; j++)
        {
            (*m_data)[i][j] = -1;
        }
    }
}
